import { createBrowserRouter } from 'react-router-dom'
import Layout from '@/pages/layout/index'
import Month from '@/pages/month/index'
import Year from '@/pages/year/index'
import New from '@/pages/new/index'
const router = createBrowserRouter([
  {
    path:'/',
    element:<Layout />,
    children:[
      {
        index:true,
        element:<Month />
      },
      {
        path:'/year',
        element:<Year />
      }
    ]
  },
  {
    path:'/new',
    element:<New />
  }
])

export default router